<?php
/**
 * Classe de formulario com configuraçoes default
 * @author felipe
 *
 */
class Voitech_Form extends Zend_Form
{	
    public $_decoratorLeft;
    public $_decoratorDefault;
    protected $no_form;
    				
	public function init()
	{
		/* Remover todos os decorators do form */
		// we don't want the default decorators
        $this->setDisableLoadDefaultDecorators(true);
            
        // set the form decorator
        $this->addDecorator('FormElements')
             ->addDecorator('HtmlTag', array('tag' => 'div'))
             ->addDecorator('Form');
        $this->_decoratorLeft = array(
						                'ViewHelper',
						                'Label',
						                'Errors',
						                new Zend_Form_Decorator_HtmlTag(array(
						                    'tag'   => 'div', 
						                    'class' => 'row cf',
						                    'style' => 'float: left; margin-right: 5px; vertical-align: baseline'
						                ))
						            );     
		$this->_decoratorDefault = array(
						                'ViewHelper',
						                'Label',
						                'Errors',
						                new Zend_Form_Decorator_HtmlTag(array(
						                    'tag'   => 'div', 
						                    'class' => 'row cf',
						                	'style' => 'vertical-align: baseline'
						                ))
						            );    						            

		$this->setMethod( Zend_Form::METHOD_POST );
	}
}